-
Notifications
You must be signed in to change notification settings - Fork 205
feat: Add new singular data source mongodbatlas_cloud_user_project_assignment #3569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
APIx bot: a message has been sent to Docs Slack channel |
@@ -128,7 +128,7 @@ func removeProjectInvitationConfigThird(username, projectName, orgID string, rol | |||
`, username, rolesStr, projectName, orgID) | |||
} | |||
|
|||
func checksSecond(username, projectName string, roles []string) resource.TestCheckFunc { | |||
func checksSecond(username string, roles []string) resource.TestCheckFunc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we managing the project as part of this test?
Can we not use ProjectIDExecution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we can, thanks for pointing that out! Updated it
roles = [%[5]s] | ||
} | ||
|
||
data "mongodbatlas_cloud_user_project_assignment" "testUsername" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: stay consistent with format used for naming resources/data sources, for example, for resource you used test_active
(with an _) but here uou name it testUsername
(different casing).
Use one format consistently & this applies to all tests, examples, documentation etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, changed it to be consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once naming in tests is consistent:)
Description
Add new singular data source:
mongodbatlas_cloud_user_project_assignment
Link to any related issue(s): CLOUDP-333177
Type of change:
Required Checklist:
Further comments